package org.wedding.center.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 金额明细表(AmountInfo)实体类
 *
 * @author songkaiyue
 * @since 2025-05-16 10:42:47
 */
@TableName(value = "amount_info")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class AmountInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @Schema(description = "唯一标识")
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 用户id
     */
    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private String userId;
    /**
     * 用户id
     */
    @Schema(description = "用户id")
    @TableField(value = "user_name")
    private String userName;


    /**
     * 余额
     */
    @Schema(description = "余额")
    @TableField(value = "amount")
    private BigDecimal amount;


    /**
     * 变动金额
     */
    @Schema(description = "变动金额")
    @TableField(value = "change_amount")
    private BigDecimal changeAmount;


    /**
     * 变动类型 0:收入 1:支出 2:提现
     */
    @Schema(description = "变动类型 0:收入 1:支出 2:提现")
    @TableField(value = "change_type")
    private String changeType;


    /**
     * 变动详情
     */
    @Schema(description = "变动详情")
    @TableField(value = "change_details")
    private String changeDetails;


    /**
     * 提现状态
     */
    @Schema(description = "提现状态0：审批中  1：已通过  2：未通过")
    @TableField(value = "cash_status")
    private String cashStatus;


    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time")
    private String createTime;


    /**
     * 收款人姓名
     */
    @Schema(description = "收款人姓名")
    @TableField(value = "pay_name")
    private String payName;


    /**
     * 银行卡账号
     */
    @Schema(description = "银行卡账号")
    @TableField(value = "pay_code")
    private String payCode;


    /**
     * 银行开户行
     */
    @Schema(description = "银行开户行")
    @TableField(value = "pay_bank")
    private String payBank;


    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    @TableField(value = "update_time")
    private String updateTime;


    /**
     * 删除标识：0:未删除  1:已删除
     */
    @Schema(description = "删除标识：0:未删除  1:已删除")
    @TableField(value = "del_flag")
    private String delFlag;

    /**
     * 未通过原因
     */
    @Schema(description = "未通过原因")
    @TableField(exist = false)
    private String approveRemark;

    /**
     * 状态
     */
    @Schema(description = "状态")
    @TableField(exist = false)
    private String approveStatus;


}

